package com.fp.m7.api.manager;

import java.io.Serializable;
import java.util.List;

import com.fp.m7.api.model.Account;

public interface AccountManager {

	Account findById(Serializable id);

	Account update(Account account);

	void delete(Account account);

	Account createNew(String username, String password, String nickname);

	Account findByUsername(String username);

	Account findByNickname(String nickname);

	List<Account> findRandom(int count);

}
